package com.adjaisd.scarecrow.mapper;

import com.adjaisd.scarecrow.entity.Device;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author adjaisd
 * @since 2022-03-10
 */
@Mapper
public interface DeviceMapper extends BaseMapper<Device> {

    @Select("select id from sc_device where number=#{number}")
    Long selectIdByNumber(@Param("number") Long number);

}
